400
|
How can I display only the month of the date

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Date");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Month") , "ComputedField", "month(%0)");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "1/1/2001 10:00:00 AM");
_ObjectCallMethod( items , "AddItem", "2/2/2002 11:00:00 AM");
_ObjectCallMethod( items , "AddItem", "3/3/2003 12:00:00 PM");
_ObjectCallMethod( items , "AddItem", "4/4/2004 1:00:00 PM");
|
399
|
How can I get only the year part from a date expression

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Date");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Year") , "ComputedField", "year(%0)");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "1/1/2001 10:00:00 AM");
_ObjectCallMethod( items , "AddItem", "2/2/2002 11:00:00 AM");
_ObjectCallMethod( items , "AddItem", "3/3/2003 12:00:00 PM");
_ObjectCallMethod( items , "AddItem", "4/4/2004 1:00:00 PM");
|
398
|
Can I convert the expression to date

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Number");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Date") , "ComputedField", "date(dbl(%0))");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "-1.98");
_ObjectCallMethod( items , "AddItem", "30000.99");
_ObjectCallMethod( items , "AddItem", "3561.23");
_ObjectCallMethod( items , "AddItem", "1232.34");
|
397
|
Can I convert the expression to a number, double or float

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Number");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Number + 2") , "ComputedField", "dbl(%0)+2");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "-1.98");
_ObjectCallMethod( items , "AddItem", "0.99");
_ObjectCallMethod( items , "AddItem", "1.23");
_ObjectCallMethod( items , "AddItem", "2.34");
|
396
|
How can I display dates in long format

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Date");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "LongFormat") , "ComputedField", "longdate(%0)");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "1/1/2001 10:00:00 AM");
_ObjectCallMethod( items , "AddItem", "2/2/2002 11:00:00 AM");
_ObjectCallMethod( items , "AddItem", "3/3/2003 12:00:00 PM");
_ObjectCallMethod( items , "AddItem", "4/4/2004 1:00:00 PM");
|
395
|
How can I display dates in short format

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Date");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "ShortFormat") , "ComputedField", "shortdate(%0)");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "1/1/2001 10:00:00 AM");
_ObjectCallMethod( items , "AddItem", "2/2/2002 11:00:00 AM");
_ObjectCallMethod( items , "AddItem", "3/3/2003 12:00:00 PM");
_ObjectCallMethod( items , "AddItem", "4/4/2004 1:00:00 PM");
|
394
|
How can I display the time only of a date expression

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Date");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Time") , "ComputedField", "'time is:' + time(date(%0))");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "1/1/2001 10:00:00 AM");
_ObjectCallMethod( items , "AddItem", "2/2/2002 11:00:00 AM");
_ObjectCallMethod( items , "AddItem", "3/3/2003 12:00:00 PM");
_ObjectCallMethod( items , "AddItem", "4/4/2004 1:00:00 PM");
|
393
|
Is there any function to display currencies, or money formatted as in the control panel

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Number");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Currency") , "ComputedField", "currency(dbl(%0))");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "1.23");
_ObjectCallMethod( items , "AddItem", "2.34");
_ObjectCallMethod( items , "AddItem", "10000.99");
|
392
|
How can I convert the expression to a string so I can look into the date string expression for month's name

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Number");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Str") , "ComputedField", "str(%0) + ' AA'");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "-1.98");
_ObjectCallMethod( items , "AddItem", "0.99");
_ObjectCallMethod( items , "AddItem", "1.23");
_ObjectCallMethod( items , "AddItem", "2.34");
|
391
|
Can I display the absolute value or positive part of the number

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Number");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Abs") , "ComputedField", "abs(%0)");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "-1.98");
_ObjectCallMethod( items , "AddItem", "0.99");
_ObjectCallMethod( items , "AddItem", "1.23");
_ObjectCallMethod( items , "AddItem", "2.34");
|
390
|
Is there any function to get largest number with no fraction part that is not greater than the value

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Number");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Floor") , "ComputedField", "floor(%0)");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "-1.98");
_ObjectCallMethod( items , "AddItem", "0.99");
_ObjectCallMethod( items , "AddItem", "1.23");
_ObjectCallMethod( items , "AddItem", "2.34");
|
389
|
Is there any function to round the values base on the .5 value

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Number");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Round") , "ComputedField", "round(%0)");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "-1.98");
_ObjectCallMethod( items , "AddItem", "0.99");
_ObjectCallMethod( items , "AddItem", "1.23");
_ObjectCallMethod( items , "AddItem", "2.34");
|
388
|
How can I get or display the integer part of the cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Number");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Int") , "ComputedField", "int(%0)");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "-1.98");
_ObjectCallMethod( items , "AddItem", "0.99");
_ObjectCallMethod( items , "AddItem", "1.23");
_ObjectCallMethod( items , "AddItem", "2.34");
|
387
|
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "") , "ComputedField", "proper(%0)");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "root");
_ObjectCallMethod( items , "InsertItem", h,"","child child");
_ObjectCallMethod( items , "InsertItem", h,"","child child");
_ObjectCallMethod( items , "InsertItem", h,"","child child");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
386
|
Is there any option to display cells in uppercase

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "") , "ComputedField", "upper(%0)");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod( items , "InsertItem", h,"","Chld 3");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
385
|
Is there any option to display cells in lowercase

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "") , "ComputedField", "lower(%0)");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod( items , "InsertItem", h,"","Chld 3");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
384
|
How can I mark the cells that has a specified type, ie strings only

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "ConditionalFormats") , "Add", "type(%0) = 8") , "ForeColor", 255);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"",2);
_ObjectCallMethod( items , "InsertItem", h,"","Chld 3");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
383
|
How can I bold the items that contains data or those who displays empty strings

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "ConditionalFormats") , "Add", "not len(%1)=0") , "Bold", -1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
hC = _ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,hC")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", hC)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(hC,1) = `1`");
_ObjectCallMethod( items , "InsertItem", h,"","Child 3");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
382
|
Can I change the background color for items or cells that contains a specified string

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "ConditionalFormats") , "Add", "%0 contains 'hi'") , "BackColor", 255);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod( items , "InsertItem", h,"","Chld 3");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
381
|
Is there any option to change the fore color for cells or items that ends with a specified string

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "ConditionalFormats") , "Add", "%0 endwith '22'") , "ForeColor", 255);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1.22");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2.22");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
380
|
How can I highlight the cells or items that starts with a specified string

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "ConditionalFormats") , "Add", "%0 startwith 'C'") , "Underline", -1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod( items , "InsertItem", h,"","SChild 3");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
379
|
How can I change the background color or the visual appearance using ebn for a particular column

OBJECT columns,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "VisualAppearance") , "Add", 1,"c:\exontrol\images\normal.ebn");
columns = _ObjectGetProperty( tree , "Columns");
_ObjectCallMethod( columns , "Add", "Column 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim colObj")
_ObjectCallMethod(tree, "TemplatePut", columns)
_ObjectCallMethod(tree, "ExecuteTemplate", "colObj.Add(`Column 2`).Def(7) = 16777216");
_ObjectCallMethod(tree, "ExecuteTemplate", "colObj.Add(`Column 3`).Def(7) = 16777471");
_ObjectCallMethod( columns , "Add", "Column 4");
|
378
|
How can I change the background color for a particular column

OBJECT columns,tree;
tree = ObjectByName("AN1") ;
columns = _ObjectGetProperty( tree , "Columns");
_ObjectCallMethod( columns , "Add", "Column 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim colObj")
_ObjectCallMethod(tree, "TemplatePut", columns)
_ObjectCallMethod(tree, "ExecuteTemplate", "colObj.Add(`Column 2`).Def(7) = 8439039");
_ObjectCallMethod( columns , "Add", "Column 3");
|
377
|
How can I display the column's header using multiple lines

OBJECT tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "HeaderHeight", 128);
_ObjectSetProperty( tree , "HeaderSingleLine", 0);
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "This is just a column that should break the header.") , "Width", 32);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "This is just another column that should break the header.");
|
376
|
How can include the values in the inner cells in the drop down filter window

OBJECT column,items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "DrawGridLines", -2);
_ObjectCallMethod( _ObjectGetProperty( tree , "VisualAppearance") , "Add", 1,"c:\exontrol\images\normal.ebn");
_ObjectCallMethod(tree, "ExecuteTemplate", "Description(1) = ``");
_ObjectCallMethod(tree, "ExecuteTemplate", "Description(2) = ``");
column = _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Single Column");
_ObjectSetProperty( column , "HTMLCaption", "Single column with <b>inner cells</b>");
_ObjectSetProperty( column , "ToolTip", "Click the drop down filter button, and the filter list includes the inner cells values too.");
_ObjectSetProperty( column , "DisplayFilterButton", -1);
_ObjectSetProperty( column , "DisplayFilterPattern", 0);
_ObjectSetProperty( column , "FilterList", 64);
_ObjectSetProperty( tree , "ShowFocusRect", 0);
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
s = _ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SplitCell(AddItem(`S 1.1`),0)");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,s")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", s)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(,s) = `S 1.2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(,s) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellBackColor(,s) = 16777216");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellWidth(,s) = 84");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
s = _ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SplitCell(AddItem(`S 2.1`),0)");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,s")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", s)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(,s) = `S 2.2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(,s) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellWidth(,s) = 84");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
s = _ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SplitCell(AddItem(`S 3.1`),0)");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,s")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", s)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(,s) = `S 3.2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(,s) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellBackColor(,s) = 16777216");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellWidth(,s) = 84");
|
375
|
How can I sort the value gets listed in the drop down filter window

OBJECT column,items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "LinesAtRoot", -1);
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectCallMethod(tree, "ExecuteTemplate", "Description(0) = ``");
_ObjectCallMethod(tree, "ExecuteTemplate", "Description(1) = ``");
_ObjectCallMethod(tree, "ExecuteTemplate", "Description(2) = ``");
column = _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "P1");
_ObjectSetProperty( column , "DisplayFilterButton", -1);
_ObjectSetProperty( column , "DisplayFilterPattern", 0);
_ObjectSetProperty( column , "FilterList", 16);
column = _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "P2");
_ObjectSetProperty( column , "DisplayFilterButton", -1);
_ObjectSetProperty( column , "DisplayFilterPattern", 0);
_ObjectSetProperty( column , "FilterList", 32);
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Z3");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `C`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(InsertItem(h,,`Z1`),1) = `B`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(InsertItem(h,,`Z2`),1) = `A`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
374
|
How can I align the text/caption on the scroll bar

OBJECT tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod(tree, "ExecuteTemplate", "ScrollPartCaption(1,512) = `left`");
_ObjectCallMethod(tree, "ExecuteTemplate", "ScrollPartCaptionAlignment(1,512) = 0");
_ObjectCallMethod(tree, "ExecuteTemplate", "ScrollPartCaption(1,128) = `right`");
_ObjectCallMethod(tree, "ExecuteTemplate", "ScrollPartCaptionAlignment(1,128) = 2");
_ObjectSetProperty( tree , "ColumnAutoResize", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", 1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", 2);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", 3);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", 4);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", 5);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", 6);
|
373
|
How do I select the next row/item
OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Column");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "Item 1");
_ObjectCallMethod( items , "AddItem", "Item 2");
_ObjectCallMethod( items , "AddItem", "Item 3");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectItem(NextVisibleItem(FocusItem)) = True");
|
372
|
How do I enable resizing ( changing the height ) the items at runtime

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ItemsAllowSizing", -1);
_ObjectSetProperty( tree , "DrawGridLines", 1);
_ObjectSetProperty( tree , "ScrollBySingleLine", -1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Column");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "Item 1");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(AddItem(`Item 2`)) = 48");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "Item 3");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "Item 4");
|
371
|
How do I enable resizing all the items at runtime

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ItemsAllowSizing", 1);
_ObjectSetProperty( tree , "DrawGridLines", 1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Column");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "Item 1");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(AddItem(`Item 2`)) = 48");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "Item 3");
|
370
|
How can I remove the filter
OBJECT column,tree;
tree = ObjectByName("AN1") ;
column = _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Column");
_ObjectSetProperty( column , "DisplayFilterButton", -1);
_ObjectSetProperty( column , "FilterType", 1);
_ObjectCallMethod( tree , "ApplyFilter");
_ObjectCallMethod( tree , "ClearFilter");
|
369
|
How do I change the control's border, using your EBN files

OBJECT tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "VisualAppearance") , "Add", 1,"c:\exontrol\images\normal.ebn");
_ObjectSetProperty( tree , "Appearance", 16777216);
|
368
|
Can I change the default border of the tooltip, using your EBN files

OBJECT tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ToolTipDelay", 1);
_ObjectSetProperty( tree , "ToolTipWidth", 364);
_ObjectCallMethod( _ObjectGetProperty( tree , "VisualAppearance") , "Add", 1,"c:\exontrol\images\normal.ebn");
_ObjectCallMethod(tree, "ExecuteTemplate", "Background(64) = 16777216");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "tootip") , "ToolTip", "this is a tooltip assigned to a column");
|
367
|
Can I change the background color for the tooltip

OBJECT tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ToolTipDelay", 1);
_ObjectSetProperty( tree , "ToolTipWidth", 364);
_ObjectCallMethod(tree, "ExecuteTemplate", "Background(65) = 255");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "tootip") , "ToolTip", "this is a tooltip assigned to a column");
|
366
|
Does the tooltip support HTML format

OBJECT tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ToolTipDelay", 1);
_ObjectSetProperty( tree , "ToolTipWidth", 364);
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "tootip") , "ToolTip", "<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>");
|
365
|
Can I change the forecolor for the tooltip

OBJECT tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ToolTipDelay", 1);
_ObjectSetProperty( tree , "ToolTipWidth", 364);
_ObjectCallMethod(tree, "ExecuteTemplate", "Background(66) = 255");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "tootip") , "ToolTip", "this is a tooltip assigned to a column");
|
364
|
Can I change the foreground color for the tooltip

OBJECT tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ToolTipDelay", 1);
_ObjectSetProperty( tree , "ToolTipWidth", 364);
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "tootip") , "ToolTip", "<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>");
|
363
|
How can I merge cells

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "DrawGridLines", -1);
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C3");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "this cell merges the first two columns");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellMerge(h,0) = 1");
h = _ObjectCallMethod( items , "AddItem", );
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `this cell merges the last two columns`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellMerge(h,1) = 2");
h = _ObjectCallMethod( items , "AddItem", "this cell merges the all three columns");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellMerge(h,0) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellMerge(h,0) = 2");
h = _ObjectCallMethod( items , "AddItem", "this draws a divider item");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDivider(h) = 0");
|
362
|
How can I merge cells

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectSetProperty( tree , "TreeColumnIndex", -1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
h = _ObjectCallMethod( items , "AddItem", "This is bit of text merges all cells in the item");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDivider(h) = 0");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,0) = 1");
|
361
|
How can I specify the width for a splited cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "DrawGridLines", -2);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Single Column");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Split 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
s = _ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SplitCell(h,0)");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,s")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", s)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellWidth(,s) = 64");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(,s) = `Split 2`");
s1 = _ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SplitCell(,s)");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,s1")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", s1)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(,s1) = `Split 3`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellWidth(,s1) = 64");
|
360
|
How can I split a cell in three parts

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "DrawGridLines", -2);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Single Column");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Split 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
s = _ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SplitCell(h,0)");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,s")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", s)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(,s) = `Split 2`");
s1 = _ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SplitCell(,s)");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,s1")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", s1)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(,s1) = `Split 3`");
|
359
|
How can I add a button aligned to right

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( tree , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Single Column");
_ObjectSetProperty( tree , "ShowFocusRect", 0);
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDivider(AddItem(`This is a bit of text being displayed on the entire item`)) = 0");
s = _ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SplitCell(AddItem(`Split Cell 1.1`),0)");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,s")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", s)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(,s) = `Split Cell <img>1</img>`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(,s) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(,s) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasButton(,s) = 16777216");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellWidth(,s) = 84");
|
358
|
How can I split a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "DrawGridLines", -2);
_ObjectCallMethod( tree , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectCallMethod( _ObjectGetProperty( tree , "VisualAppearance") , "Add", 1,"c:\exontrol\images\normal.ebn");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Single Column");
_ObjectSetProperty( tree , "ShowFocusRect", 0);
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
s = _ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SplitCell(AddItem(`Split Cell 1.1`),0)");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,s")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", s)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(,s) = `Split Cell <img>1</img>`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(,s) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(,s) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellBackColor(,s) = 16777216");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellWidth(,s) = 84");
|
357
|
Can I select an item giving its general position

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectSetProperty( items , "SelectPos", 1);
|
356
|
How can I change the color for separator / dividers items

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "GridLineColor", 255);
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectSetProperty( tree , "TreeColumnIndex", -1);
_ObjectSetProperty( tree , "ScrollBySingleLine", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
h = _ObjectCallMethod( items , "AddItem", );
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDivider(h) = 0");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDividerLine(h) = 4");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDividerLineAlignment(h) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(h) = 6");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectableItem(h) = False");
h = _ObjectCallMethod( items , "AddItem", "Cell 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
|
355
|
How can I add separator - dividers items

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectSetProperty( tree , "TreeColumnIndex", -1);
_ObjectSetProperty( tree , "ScrollBySingleLine", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
h = _ObjectCallMethod( items , "AddItem", );
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDivider(h) = 0");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDividerLine(h) = 4");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDividerLineAlignment(h) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(h) = 6");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectableItem(h) = False");
h = _ObjectCallMethod( items , "AddItem", "Cell 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
|
354
|
Can I change the style of the line being displayed by a divider item

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectSetProperty( tree , "TreeColumnIndex", -1);
_ObjectSetProperty( tree , "ScrollBySingleLine", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
h = _ObjectCallMethod( items , "AddItem", "This is bit of text that's displayed on the entire item, divider.");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDivider(h) = 0");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDividerLine(h) = 4");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,0) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(h) = 24");
|
353
|
Can I remove the line being displayed by a divider item

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectSetProperty( tree , "TreeColumnIndex", -1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
h = _ObjectCallMethod( items , "AddItem", "This is bit of text that's displayed on the entire item, divider.");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDivider(h) = 0");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDividerLine(h) = 0");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,0) = 1");
|
352
|
How can I display a divider item, merging all cells

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectSetProperty( tree , "TreeColumnIndex", -1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
h = _ObjectCallMethod( items , "AddItem", "This is bit of text that's displayed on the entire item, divider.");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemDivider(h) = 0");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,0) = 1");
|
351
|
How can I fix or lock items

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.LockedItemCount(0) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(LockedItem(0,0),0) = `This is a locked item, fixed to the top side of the control.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBackColor(LockedItem(0,0)) = 12240068");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.LockedItemCount(2) = 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(LockedItem(2,0),0) = `This is a locked item, fixed to the top side of the control.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBackColor(LockedItem(2,0)) = 12240068");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(LockedItem(2,1),0) = `This is a locked item, fixed to the top side of the control.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBackColor(LockedItem(2,1)) = 12237498");
|
350
|
How can I fix or lock an item on the bottom side of the control

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.LockedItemCount(2) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(LockedItem(2,0),0) = `This is a locked item, fixed to the bottom side of the control.`");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
349
|
How can I fix or lock an item on the top of the control

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.LockedItemCount(0) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(LockedItem(0,0),0) = `This is a locked item, fixed to the top side of the control.`");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
348
|
Is there any function to limit the height of the items when I display it using multiple lines

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ScrollBySingleLine", -1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemMaxHeight(h) = 48");
|
347
|
Why I cannot center my cells in the column

OBJECT tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "TreeColumnIndex", -1);
_ObjectSetProperty( tree , "DrawGridLines", -2);
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default") , "Alignment", 1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "item 1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "item 2");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "item 3");
|
346
|
How can I align the cell to the left, center or to the right

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "TreeColumnIndex", -1);
_ObjectSetProperty( tree , "DrawGridLines", -2);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(AddItem(`left`),0) = 0");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(AddItem(`center`),0) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(AddItem(`right`),0) = 2");
|
345
|
How do I apply HTML format to a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "TreeColumnIndex", -1);
_ObjectCallMethod( tree , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectCallMethod(tree, "ExecuteTemplate", "HTMLPicture(`p1`) = `c:\exontrol\images\zipdisk.gif`");
_ObjectCallMethod(tree, "ExecuteTemplate", "HTMLPicture(`p2`) = `c:\exontrol\images\auction.gif`");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "The following item shows some of the HTML format supported:");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,0) = 1");
h = _ObjectCallMethod( items , "AddItem", "<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <" +
"u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolo" +
"r</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> ");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(h,0) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,0) = False");
|
344
|
How can I change the font for a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "std font");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(AddItem(`this <font tahoma;12>is a bit of text with</font> a different font`),0) = 1");
|
343
|
How can I change the font for a cell

OBJECT f,items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "default font");
f = CreateObject("StdFont");
_ObjectSetProperty( f , "Name", "Tahoma");
_ObjectSetProperty( f , "Size", 12);
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellFont(AddItem(`new font`),0) = f");
|
342
|
How can I change the font for entire item

OBJECT f,items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
_ObjectCallMethod( _ObjectGetProperty( tree , "Items") , "AddItem", "default font");
f = CreateObject("StdFont");
_ObjectSetProperty( f , "Name", "Tahoma");
_ObjectSetProperty( f , "Size", 12);
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemFont(AddItem(`new font`)) = f");
|
341
|
How do I vertically align a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "DrawGridLines", -2);
_ObjectCallMethod(tree, "ExecuteTemplate", "Columns.Add(`MultipleLine`).Def(16) = False");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "VAlign");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "This is a bit of long text that should break the line");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `top`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellVAlignment(h,1) = 0");
h = _ObjectCallMethod( items , "AddItem", "This is a bit of long text that should break the line");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `middle`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellVAlignment(h,1) = 1");
h = _ObjectCallMethod( items , "AddItem", "This is a bit of long text that should break the line");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `bottom`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellVAlignment(h,1) = 2");
|
340
|
How can I change the position of an item

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod( items , "AddItem", "Item 1");
_ObjectCallMethod( items , "AddItem", "Item 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemPosition(AddItem(`Item 3`)) = 0");
|
339
|
How do I find an item based on a path

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemData(InsertItem(h,,`Child 2`)) = 1234");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBold(FindPath(`Root 1\Child 1`)) = True");
|
338
|
How do I find an item based on my extra data

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemData(InsertItem(h,,`Child 2`)) = 1234");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBold(FindItemData(1234)) = True");
|
337
|
How do I find an item

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBold(FindItem(`Child 2`,0)) = True");
|
336
|
How can I insert a hyperlink or an anchor element

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Column");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(AddItem(`Just an <a1>anchor</a> element ...`),0) = 1");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(AddItem(`Just another <a2>anchor</a> element ...`),0) = 1");
|
335
|
How do I find the index of the item based on its handle

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBold(ItemByIndex(ItemToIndex(h))) = True");
|
334
|
How do I find the handle of the item based on its index

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBold(ItemByIndex(1)) = True");
|
333
|
How can I find the cell being clicked in a radio group

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectSetProperty( tree , "SelBackColor", 8454143);
_ObjectSetProperty( tree , "SelForeColor", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C3");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Radio 1`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasRadioButton(h,1) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellRadioGroup(h,1) = 1234");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,2) = `Radio 2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasRadioButton(h,2) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellRadioGroup(h,2) = 1234");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellState(h,1) = 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellBold(,CellChecked(1234)) = True");
|
332
|
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "LinesAtRoot", -1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHasChildren(AddItem(`parent item with no child items`)) = True");
_ObjectCallMethod( items , "AddItem", "next item");
|
331
|
Can I let the user to resize at runtime the specified item

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ScrollBySingleLine", -1);
_ObjectSetProperty( tree , "DrawGridLines", -2);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemAllowSizing(AddItem(`resizable item`)) = True");
_ObjectCallMethod( items , "AddItem", "not resizable item");
|
330
|
How can I change the size ( width, height ) of the picture

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellPicture(h,0) = Me.ExecuteTemplate(`loadpicture(`c:\exontrol\images\zipdisk.gif`)`)");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellPictureWidth(h,0) = 24");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellPictureHeight(h,0) = 24");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(h) = 32");
h = _ObjectCallMethod( items , "AddItem", "Root 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellPicture(h,0) = Me.ExecuteTemplate(`loadpicture(`c:\exontrol\images\zipdisk.gif`)`)");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(h) = 48");
|
329
|
How can I find the number or the count of selected items

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "SingleSel", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectItem(ItemChild(h)) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectItem(NextSiblingItem(ItemChild(h))) = True");
_ObjectCallMethod( items , "AddItem", _ObjectGetProperty( items , "SelectCount"));
|
328
|
How do I unselect an item

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectItem(h) = False");
|
327
|
How do I find the selected item

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectItem(h) = True");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBold(SelectedItem(0)) = True");
|
326
|
How do I un select all items
OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "SingleSel", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod( items , "UnselectAll");
|
325
|
How do I select multiple items

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "SingleSel", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectItem(ItemChild(h)) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectItem(NextSiblingItem(ItemChild(h))) = True");
|
324
|
How do I select all items

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "SingleSel", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod( items , "SelectAll");
|
323
|
How do I select an item

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.SelectItem(h) = True");
|
322
|
Can I display a button with some picture or icon inside

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod(tree, "ExecuteTemplate", "HTMLPicture(`p1`) = `c:\exontrol\images\zipdisk.gif`");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = ` Button <img>p1</img> `");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(h,1) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,1) = 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasButton(h,1) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellButtonAutoWidth(h,1) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(h) = 48");
|
321
|
Can I display a button with some picture or icon inside

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( tree , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = ` Button <img>1</img> `");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(h,1) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,1) = 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasButton(h,1) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellButtonAutoWidth(h,1) = True");
|
320
|
Can I display a button with some icon inside

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( tree , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = ` <img>1</img> `");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(h,1) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,1) = 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasButton(h,1) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellButtonAutoWidth(h,1) = True");
|
319
|
How can I assign multiple icon/picture to a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod(tree, "ExecuteTemplate", "HTMLPicture(`p1`) = `c:\exontrol\images\zipdisk.gif`");
_ObjectCallMethod(tree, "ExecuteTemplate", "HTMLPicture(`p2`) = `c:\exontrol\images\auction.gif`");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "text <img>p1</img> another picture <img>p2</img> and so on");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(h,0) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellPicture(h,0) = Me.ExecuteTemplate(`loadpicture(`c:\exontrol\images\colorize.gif`)`)");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(h) = 48");
_ObjectCallMethod( items , "AddItem", "Root 2");
|
318
|
How can I assign an icon/picture to a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellPicture(h,0) = Me.ExecuteTemplate(`loadpicture(`c:\exontrol\images\zipdisk.gif`)`)");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemHeight(h) = 48");
_ObjectCallMethod( items , "AddItem", "Root 2");
|
317
|
How can I assign multiple icons/pictures to a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( tree , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root <img>1</img> 1, <img>2</img>, ... and so on ");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaptionFormat(h,0) = 1");
|
316
|
How can I assign multiple icons/pictures to a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( tree , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellImages(h,0) = `1,2,3`");
|
315
|
How can I assign an icon/picture to a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( tree , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellImage(h,0) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellImage(InsertItem(h,,`Child 1`),0) = 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellImage(InsertItem(h,,`Child 2`),0) = 3");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
|
314
|
How can I get the handle of an item based on the handle of the cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "Default");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Root 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 1");
_ObjectCallMethod( items , "InsertItem", h,"","Child 2");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ExpandItem(h) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.ItemBold(CellItem(ItemCell(h,0))) = True");
|
313
|
How can I display a button inside the item or cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = ` Button 1 `");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,1) = 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasButton(h,1) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellButtonAutoWidth(h,1) = True");
h = _ObjectCallMethod( items , "AddItem", "Cell 2");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = ` Button 2 `");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHAlignment(h,1) = 1");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasButton(h,1) = True");
|
312
|
How can I change the state of a radio button

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectSetProperty( tree , "SelBackColor", 8454143);
_ObjectSetProperty( tree , "SelForeColor", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C3");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Radio 1`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasRadioButton(h,1) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellRadioGroup(h,1) = 1234");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,2) = `Radio 2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasRadioButton(h,2) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellRadioGroup(h,2) = 1234");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellState(h,1) = 1");
|
311
|
How can I assign a radio button to a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "MarkSearchColumn", 0);
_ObjectSetProperty( tree , "SelBackColor", 8454143);
_ObjectSetProperty( tree , "SelForeColor", 0);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C3");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Radio 1`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasRadioButton(h,1) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellRadioGroup(h,1) = 1234");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,2) = `Radio 2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasRadioButton(h,2) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellRadioGroup(h,2) = 1234");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellState(h,1) = 1");
|
310
|
How can I change the state of a checkbox

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Check Box`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasCheckBox(h,1) = True");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellState(h,1) = 1");
|
309
|
How can I assign a checkbox to a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Check Box`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellHasCheckBox(h,1) = True");
|
308
|
How can I display an item or a cell on multiple lines

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectSetProperty( tree , "ScrollBySingleLine", -1);
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `This is bit of text that's shown on multiple lines`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellSingleLine(h,1) = False");
|
307
|
How can I assign a tooltip to a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `tooltip`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellToolTip(h,1) = `This is bit of text that's shown when the user hovers the cell`");
|
306
|
How can I associate an extra data to a cell
OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Cell 2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellData(h,1) = `your extra data`");
|
305
|
How do I enable or disable a cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Cell 2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellEnabled(h,1) = False");
|
304
|
How do I change the cell's foreground color

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Cell 2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellForeColor(h,1) = 255");
|
303
|
How do I change the visual effect for the cell, using your EBN files

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "VisualAppearance") , "Add", 1,"c:\exontrol\images\normal.ebn");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Cell 2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellBackColor(h,1) = 16777216");
|
302
|
How do I change the cell's background color

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
h = _ObjectCallMethod( items , "AddItem", "Cell 1");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj,h")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "TemplatePut", h)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(h,1) = `Cell 2`");
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellBackColor(h,1) = 255");
|
301
|
How do I change the caption or value for a particular cell

OBJECT items,tree;
tree = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C1");
_ObjectCallMethod( _ObjectGetProperty( tree , "Columns") , "Add", "C2");
items = _ObjectGetProperty( tree , "Items");
_ObjectCallMethod(tree, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(tree, "TemplatePut", items)
_ObjectCallMethod(tree, "ExecuteTemplate", "iteObj.CellCaption(AddItem(`Cell 1`),1) = `Cell 2`");
|